package com.dingup.provider.mapper;

import com.dingup.api.enums.ExamTypeEnum;
import com.dingup.api.model.lesson.LessonInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface LessonInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(LessonInfo record);

    int insertSelective(LessonInfo record);

    LessonInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(LessonInfo record);

    int updateByPrimaryKey(LessonInfo record);

    LessonInfo getByLessonName(String lessonName);

    List<LessonInfo> getLessonInfoByCreateUserIds(@Param("createUserIds")List<String> createUserIds);

    List<LessonInfo> getLesson(@Param("schoolCampus") List<String> schoolCampus,@Param("status")List<Boolean> status,@Param("exam")List<String> exam,@Param("createUserIds")List<String> createUserIds,@Param("type")String type);

    List<LessonInfo> getLessonInfoByNameOrExam(@Param("query") String query, @Param("createUserIds")List<String> createUserIds);

    List<LessonInfo> getLessonIfOnShelf(Boolean ifOnShelf);
}